package entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Leaveword entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "leaveword", catalog = "house")
public class Leaveword implements java.io.Serializable {

	// Fields

	private Integer id;
	private Usedhouse usedhouse;
	private String LName;
	private String LSex;
	private String LContact;
	private String LMobileTelephone;
	private String LEmail;
	private Integer LPost;
	private String LAddress;
	private String LContent;

	// Constructors

	/** default constructor */
	public Leaveword() {
	}

	/** minimal constructor */
	public Leaveword(Usedhouse usedhouse, String LName, String LSex,
			String LContact, String LContent) {
		this.usedhouse = usedhouse;
		this.LName = LName;
		this.LSex = LSex;
		this.LContact = LContact;
		this.LContent = LContent;
	}

	/** full constructor */
	public Leaveword(Usedhouse usedhouse, String LName, String LSex,
			String LContact, String LMobileTelephone, String LEmail,
			Integer LPost, String LAddress, String LContent) {
		this.usedhouse = usedhouse;
		this.LName = LName;
		this.LSex = LSex;
		this.LContact = LContact;
		this.LMobileTelephone = LMobileTelephone;
		this.LEmail = LEmail;
		this.LPost = LPost;
		this.LAddress = LAddress;
		this.LContent = LContent;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "usedhouseid", nullable = false)
	public Usedhouse getUsedhouse() {
		return this.usedhouse;
	}

	public void setUsedhouse(Usedhouse usedhouse) {
		this.usedhouse = usedhouse;
	}

	@Column(name = "l_name", nullable = false, length = 30)
	public String getLName() {
		return this.LName;
	}

	public void setLName(String LName) {
		this.LName = LName;
	}

	@Column(name = "l_sex", nullable = false, length = 2)
	public String getLSex() {
		return this.LSex;
	}

	public void setLSex(String LSex) {
		this.LSex = LSex;
	}

	@Column(name = "l_contact", nullable = false, length = 30)
	public String getLContact() {
		return this.LContact;
	}

	public void setLContact(String LContact) {
		this.LContact = LContact;
	}

	@Column(name = "l_mobileTelephone", length = 30)
	public String getLMobileTelephone() {
		return this.LMobileTelephone;
	}

	public void setLMobileTelephone(String LMobileTelephone) {
		this.LMobileTelephone = LMobileTelephone;
	}

	@Column(name = "l_email", length = 50)
	public String getLEmail() {
		return this.LEmail;
	}

	public void setLEmail(String LEmail) {
		this.LEmail = LEmail;
	}

	@Column(name = "l_post")
	public Integer getLPost() {
		return this.LPost;
	}

	public void setLPost(Integer LPost) {
		this.LPost = LPost;
	}

	@Column(name = "l_address", length = 50)
	public String getLAddress() {
		return this.LAddress;
	}

	public void setLAddress(String LAddress) {
		this.LAddress = LAddress;
	}

	@Column(name = "l_content", nullable = false, length = 200)
	public String getLContent() {
		return this.LContent;
	}

	public void setLContent(String LContent) {
		this.LContent = LContent;
	}

}